<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     Pagizer
 * @subpackage  backoffice
 */

class m_backoffice_extends_Exception extends Exception
{
    public static function getError($exception)
    {
        $cookie = m_backoffice_services_CookieService::getInstance();

        $cookie->setLastUrl('null')->save();

        $user = f_core_Context::getInstance()->getContext('user');

        f_exception_BaseException::exceptionHandler($exception);
    }
}
